﻿// owner 蒋家伟

#include "ElementBasicInfomation.h"

// jsdk
#include "ObjectReflectDefine.h"
#include "Dbg_Warn_Define.h"

using namespace jsdk;

OBJECT_REFLECT_DEFINE(jsdk, ElementBasicInfomation)
{
}

jsdk::OwnerPtr<jsdk::ElementBasicInfomation> jsdk::ElementBasicInfomation::create()
{
    return NEW_AS_OWNERPTR(ElementBasicInfomation);
}

void jsdk::ElementBasicInfomation::setOwnerElement(IElement* pOwnerElement)
{
    DBG_WARN_AND_RETURN_VOID_UNLESS(pOwnerElement, L"传入了无效的所属对象指针", L"蒋家伟", L"2023-12-18");
    setpOwnerElement__(pOwnerElement);
}

void jsdk::ElementBasicInfomation::setElementId(const ElementId& elementId)
{
    DBG_WARN_AND_RETURN_VOID_UNLESS(elementId.isValid(), L"设置了无效ID", L"蒋家伟", L"2023-12-18");
    setownerId__(elementId);
}

void jsdk::ElementBasicInfomation::setTypeUid(const UniqueId& typeUid)
{
    settypeUid__(typeUid);
}

void jsdk::ElementBasicInfomation::setIsTemporary(bool isTemp)
{
    setisTemporary__(isTemp);
}
